﻿using System;
using System.Collections;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            ArrayList arrayList = new ArrayList() { "abc","abb","bac","cdd"};
            arrayList.Sort();
            foreach (var item in arrayList)
            {
                Console.WriteLine(item);
            }

            SecondComparable secondComparable = new SecondComparable();
            secondComparable.weight = 67;
            SecondComparable second = new SecondComparable();
            second.weight = 88;
            var w1 = secondComparable.weight;
            var w2 = second.weight;
            var w = w1.CompareTo(w2);
            Console.WriteLine(w);
        }
    }
}
